import * as React from 'react';
import {Button} from 'native-base';

// 页面
import Home from '../pagesV1/home/Home';
import Detail from '../pagesV1/detail/Detail';
import Shop from '../pagesV1/shop/Shop';
import Other from '../pagesV1/other/Other';
import Webview from '../pagesV1/webview/Webview';

// 启动页界面
export const StartUpRoutes = [];

// 登录前界面
export const SplashRoutes = [
  // {
  //   name: 'Login',
  //   component: LoginScreen,
  //   options: {title: '', headerShown: false},
  // },
];

export const pagesRouter = [
  {
    name: '其他',
    key: 'other',
    component: Other,
    options: {},
  },
  {
    name: 'webview',
    key: 'webview',
    component: Webview,
    options: {},
  },
];

export const MainRoutes = [
  {
    name: '首页',
    key: 'home',
    component: Home,
    options: {
      headerShown: false,
      icon: require('../assets/icons/home.png'),
      iconActive: require('../assets/icons/home-active.png'),
    },
  },
  {
    name: '详情页',
    key: 'detail',
    component: Detail,
    options: {
      icon: require('../assets/icons/detail.png'),
      iconActive: require('../assets/icons/detail-active.png'),
    },
  },
  {
    name: '购物页',
    key: 'shop',
    component: Shop,
    options: {
      icon: require('../assets/icons/shop.png'),
      iconActive: require('../assets/icons/shop-active.png'),
    },
  },
];
